using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;

namespace Zsa.Reflection.Discovery
{
    /// <summary>
    /// The attribute filter.
    /// </summary>
    public interface IAttributeFilter
    {
        /// <summary>
        /// Checks the type.
        /// </summary>
        /// <param name="type">The type.</param>
        /// <param name="filter">The filter.</param>
        /// <returns></returns>
        bool CheckAttribute(CustomAttributeData type, object filter);

        /// <summary>
        /// The attribute type.
        /// This can be null.
        /// </summary>
        Type AttributeType { get; }

        /// <summary>
        /// Gets the filter.
        /// </summary>
        /// <value>The filter.</value>
        object Filter { get; }

        /// <summary>
        /// The search type.
        /// </summary>
        SearchType SearchType { get; }

        /// <summary>
        /// When set to true checks base types.
        /// </summary>
        bool Inherit { get; }

        /// <summary>
        /// The type filter.
        /// </summary>
        ITypeFilter TypeFilter { get; }

        /// <summary>
        /// The member filter.  This can be null.
        /// </summary>
        IMemberFilter MemberFilter { get; }
    }
}
